﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;

namespace Freshome.b
{
    public static class Liboat
    {
        public static string RecipeCategory(RecipeCateg ct)
        {
            switch (ct)
            {
                case RecipeCateg.Coldish: return "冷菜";
                case RecipeCateg.Dishot: return "热菜";
                case RecipeCateg.Soupot: return "汤粥";
                case RecipeCateg.Snack: return "小吃";
                case RecipeCateg.Pastry: return "主食";
                case RecipeCateg.Drink: return "饮品";
                default: return "食谱";
            }
        }
        public static string MajorawCategory(MajorawCateg ct)
        {
            switch (ct)
            {
                case MajorawCateg.Meat: return "肉类";
                case MajorawCateg.Green: return "蔬菜";
                case MajorawCateg.Grain: return "谷薯类";
                case MajorawCateg.Water: return "鱼虾";
                case MajorawCateg.Egg: return "禽蛋";
                case MajorawCateg.Bean: return "豆制品";
                case MajorawCateg.Milk: return "奶制品";
                case MajorawCateg.Fruit: return "水果";
                case MajorawCateg.Nut: return "坚果";
                case MajorawCateg.Mushroom: return "菌菇";
                default: return "食材";
            }
        }
    }
    [DataContract]
    public enum RecipeCateg : byte
    {
        [EnumMember]
        None = 0,
        [EnumMember]
        Coldish = 1,    // 冷菜
        [EnumMember]
        Dishot = 2,     // 热菜
        [EnumMember]
        Soupot = 3,     // 汤粥
        [EnumMember]
        Snack = 4,     // 小吃
        [EnumMember]
        Pastry = 5,     // 主食
        [EnumMember]
        Drink = 6,       // 饮品
    };
    [DataContract]
    public enum MajorawCateg : byte
    {
        [EnumMember]
        None = 0,
        [EnumMember]
        Meat = 1,       // 肉类
        [EnumMember]
        Green = 2,      // 蔬菜
        [EnumMember]
        Grain = 3,      // 米面
        [EnumMember]
        Water = 4,      // 水产
        [EnumMember]
        Egg = 5,        // 禽蛋
        [EnumMember]
        Bean = 6,       // 豆制品
        [EnumMember]
        Milk = 7,       // 奶制品
        [EnumMember]
        Fruit = 8,       // 水果
        [EnumMember]
        Nut = 9,        // 坚果
        [EnumMember]
        Mushroom = 10   // 菌菇
    };
    [DataContract]
    public enum MinorawCateg : byte
    {
        [EnumMember]
        None = 0,
        [EnumMember]
        Solid = 1,    // 固态
        [EnumMember]
        Liquid = 2    // 液态
    };
}
